import java.util.Arrays;
import java.util.Calendar;
import java.util.Scanner;

/*
public class Main {
    public static void main(String[] args) {
        //首先从屏幕读取n，代表要创建的对象个数。
        //然后输入n行name age gender , 调用上面2编写的有参构造函数新建对象。
        //然后将刚才创建的所有对象逆序输出。
        //接下来使用无参构造函数新建一个Person对象，并直接打印该对象。
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        Person[] person = new Person[n];
        for (int i = 0; i < n; i++) {
            person[i] = new Person (scanner.next(),scanner.nextInt(),scanner.nextBoolean());
        }
        for (int i = n - 1; i >= 0 ; i--) {
            System.out.println(person[i].toString());
        }

        Person person1 = new Person();
        System.out.println(person1.toString());
    }
}*/


/*public class Main{
    public static void main(String[] args) {
        Person[] person = new Person[3];
        person[0] = new Person("张三",21);
        person[1] = new Person("李四",8);
        person[2] = new Person("王五",76);
        System.out.println("排序前："+ Arrays.toString(person));
        Arrays.sort(person);
        System.out.println("排序后："+ Arrays.toString(person));
    }
}*/


/*public class Main{
    public static void main(String[] args) {
        Person[] person = new Person[3];
        person[0] = new Person("张三",21);
        person[1] = new Person("李四",8);
        person[2] = new Person("王五",76);
        System.out.println("排序前："+ Arrays.toString(person));
        bubberSort(person);
        System.out.println("排序后："+ Arrays.toString(person));
    }

    public static void bubberSort(Comparable[] comparables){
        for (int i = 0; i < comparables.length - 1; i++) {
            for (int j = 0; j < comparables.length - 1 - i; j++) {
                if (comparables[j].compareTo(comparables[j + 1]) > 0){
                    Comparable tmp =  comparables[j];
                    comparables[j] = comparables[j+1];
                    comparables[j+1] = tmp;
                }
            }
        }
    }
}*/
import java.util.Scanner;

public class Main{
   /* public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String name = scanner.nextLine();
    }*/
/*   public static void main(String[] args) {
       Scanner scan = new Scanner(System.in);
       System.out.println("输入一个整数：");
       int a = scan.nextInt();
       System.out.println(a);
       String b = scan.nextLine();//回车给消掉
       System.out.println(b);
       System.out.println("输入你的姓名：");
       String name = scan.nextLine();//遇到空格不会结束的
       System.out.println(name);
       String c = scan.nextLine();//回车给消掉
       System.out.println(c);
       System.out.println("输入一个小数：");
       double d = scan.nextDouble();
       System.out.println(d);

   }*/
}


